home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / machack / Hacks97 / WarriorsProgress.sit / Warrior’s Progress / source code / Source / Libraries / Views / SolidFrame.h < prev    next >
Text File  |  1997-06-28  |  944b  |  42 lines

  1. // SolidFrame.h
  2.  
  3. #ifndef SolidFrame_h
  4. #define SolidFrame_h
  5.  
  6. #ifndef Frame_h
  7. #include "Frame.h"
  8. #endif
  9. #ifndef HasForegroundColor_h
  10. #include "HasForegroundColor.h"
  11. #endif
  12.  
  13. class SolidFrame: public Frame,
  14.                         public HasForegroundColor
  15.   {
  16.     private:
  17.         virtual void ForegroundColorChanged();
  18.         
  19.     public:
  20.         SolidFrame( uint16 thickness,
  21.                         RGBColor theColor = NamedColors::black )
  22.           : Frame( Rectangle( -thickness, -thickness, thickness, thickness ) ),
  23.              HasForegroundColor( theColor )
  24.           {}
  25.  
  26.         SolidFrame( PointObject thickness,
  27.                         RGBColor theColor = NamedColors::black )
  28.           : Frame( Rectangle( -thickness.h, -thickness.v, thickness.h, thickness.v ) ),
  29.              HasForegroundColor( theColor )
  30.           {}
  31.  
  32.         SolidFrame( Rectangle thickness,
  33.                         RGBColor theColor = NamedColors::black )
  34.           : Frame( thickness ),
  35.              HasForegroundColor( theColor )
  36.           {}
  37.         
  38.         virtual void DrawBorder( const ViewMap&, Rectangle interior ) const;
  39.   };
  40.  
  41. #endif
  42.